<template>
  <el-card>
    <el-row :gutter="20">
      <el-col :span="10">
        <el-input 
        placeholder="请输入内容" 
        class="input-with-select"
        v-model="reqData.query"
        @click="sreach"
        >
          <el-button slot="append" icon="el-icon-search"></el-button>
        </el-input>
      </el-col>
      <el-col :span="4">
        <el-button type="primary">添加用户</el-button>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
export default {
  data(){
    return {
      reqData: {
        query: "",
        pagenum: 1,
        pagesize: 1,
      }
    }
  },
  methods:{
    sreach(){
      this.$store.dispatch('getUser',this.reqData);
    }
  }
};
</script>

<style>
</style>